<!--
	此示例下载自 https://echarts.apache.org/examples/zh/editor.html?c=radar
-->
<!DOCTYPE html>
<html lang="zh-CN" style="height: 100%">
<head>
  <meta charset="utf-8">
</head>
<body style="height: 100%; margin: 0">
  <div id="container" style="height: 80%;width: 100%;padding-top: 20px;"></div>

  
  <script type="text/javascript" src="https://fastly.jsdelivr.net/npm/echarts@5.4.2/dist/echarts.min.js"></script>
  <script type="text/javascript" src="westeros.js"></script>
  <!-- Uncomment this line if you want to dataTool extension
  <script type="text/javascript" src="https://fastly.jsdelivr.net/npm/echarts@5.4.2/dist/extension/dataTool.min.js"></script>
  -->
  <!-- Uncomment this line if you want to use gl extension
  <script type="text/javascript" src="https://fastly.jsdelivr.net/npm/echarts-gl@2/dist/echarts-gl.min.js"></script>
  -->
  <!-- Uncomment this line if you want to echarts-stat extension
  <script type="text/javascript" src="https://fastly.jsdelivr.net/npm/echarts-stat@latest/dist/ecStat.min.js"></script>
  -->
  <!-- Uncomment this line if you want to use map
  <script type="text/javascript" src="https://fastly.jsdelivr.net/npm/echarts@4.9.0/map/js/china.js"></script>
  <script type="text/javascript" src="https://fastly.jsdelivr.net/npm/echarts@4.9.0/map/js/world.js"></script>
  -->
  <!-- Uncomment these two lines if you want to use bmap extension
  <script type="text/javascript" src="https://api.map.baidu.com/api?v=3.0&ak=YOUR_API_KEY"></script>
  <script type="text/javascript" src="https://fastly.jsdelivr.net/npm/echarts@5.4.2/dist/extension/bmap.min.js"></script>
  -->

  <script type="text/javascript">
    var dom = document.getElementById('container');
    var mCharts = echarts.init(dom,'light')
    var myChart = echarts.init(dom, null, {
      renderer: 'canvas',
      useDirtyRect: false
    });
    var app = {};
    
    var option;

    option = {
  title: {
    text: '广州\n深圳工资对比',

  },
  legend: {
    data: ['广州', '深圳'],
    left:'right'
  },
  radar: {
     top:'50px',
    // shape: 'circle',
    indicator: [
      { name: '花都区/南山区', max: 40 ,color:'black'},
      { name: '海珠区/\n 盐田区', max: 40 ,color:'black'},
      { name: '越秀区/\n光明区', max: 40 ,color:'black'},
      { name: '番禺区/\n龙华区', max: 40 ,color:'black'},
      { name: '天河区/\n福田区', max: 40 ,color:'black'},
      { name: '荔湾区/\n宝安区', max: 40 ,color:'black'}
    ]
  },
  series: [
    {
      name: 'Budget vs spending',
      type: 'radar',
      data: [
        {
          value: [34.5, 24.4, 22.9, 20, 20, 19],
          name: '广州'
        },
        {
          value: [27.4, 26.6, 26.2, 25.6, 25, 23.1],
          name: '深圳'
        }
      ]
    }
  ]
};

    if (option && typeof option === 'object') {
      myChart.setOption(option);
    }

    window.addEventListener('resize', myChart.resize);
  </script>
</body>
</html>